package com.situ.day10;

public class EvenThread extends Thread {

	public EvenThread(String name) {
		super(name);
	}

	@Override
	public void run() {
		String name = Thread.currentThread().getName();
		for (int i = 2; i <= 100; i += 2) {
			System.out.println(name + " :  " + i);
			try {
				Thread.sleep(50);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
